package cn.kent.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author SunChenpeng
 * @date 2021/11/23 15:01
 */
@Controller
public class IndexController {

    @GetMapping("/")
    public String indexDefault(Model model){
        return "index";
    }

    @GetMapping("/index")
    public String index(Model model){
        return "index";
    }

}
